package com.代理模式.静态代理;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2023/3/1 9:17
 * @description:
 * @version:
 */
//client测试类
public class TestStaticProxy {
    public static void main(String[] args) {
        //定义租房
        IRentHouse iRentHouse = new RentHouse();
        //定义中介
        IRentHouse intermediaryProxy = new IntermediaryProxy(iRentHouse);
        //中介租房
        intermediaryProxy.rentHouse();
    }
}
